<template>
  <div class="letter">
    <div class="title">
      <svg
        @click="$router.back()"
        t="1671798247143"
        class="icon"
        viewBox="0 0 1024 1024"
        version="1.1"
        xmlns="http://www.w3.org/2000/svg"
        p-id="2281"
        width="200"
        height="200"
      >
        <path
          d="M319.64 512.016l336.016-336.008 45.248 45.248L364.896 557.28z"
          p-id="2282"
        ></path>
        <path
          d="M365.216 466.464l339.976 339.968-45.256 45.256-339.976-339.976z"
          p-id="2283"
        ></path>
      </svg>
      <span>消息中心</span>
      <span></span>
    </div>
    <div class="action">
      <ul class="list">
        <li v-for="(icon, index) in dataList" :key="index">
          <img v-lazy="icon.icon" alt="" />
          <span>{{ icon.name }}</span>
        </li>
      </ul>
    </div>
    <div class="letter-content">
      <div class="empty">
        <img
          src="https://image-mall.gxptkc.com/m/resources/empty_msg.png"
          alt=""
        />
        <span>暂无消息记录</span>
      </div>
    </div>
  </div>
</template>

<script>
import Vue from "vue";
import { Lazyload } from "vant";

Vue.use(Lazyload);
export default {
  data() {
    return {
      dataList: [
        {
          icon: "https://image-mall.gxptkc.com/m/resources/member/icon60.png",
          name: "系统消息",
        },
        {
          icon: "	https://image-mall.gxptkc.com/m/resources/member/icon20.png",
          name: "订单消息",
        },
        {
          icon: "https://image-mall.gxptkc.com/m/resources/member/icon70.png",
          name: "预约提醒",
        },
        {
          icon: "https://image-mall.gxptkc.com/m/resources/member/icon30.png",
          name: "售后消息",
        },
        {
          icon: "https://image-mall.gxptkc.com/m/resources/member/receive_settings.png",
          name: "接收设置",
        },
      ],
    };
  },
};
</script>
<style lang="scss" scoped>
.letter {
  background-color: rgb(245, 245, 245);
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  .title {
    display: flex;
    justify-content: space-between;
    padding: 10rem;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    svg {
      width: 25rem;
      height: 25rem;
    }
    span {
      font-size: 16rem;
      color: #000;
      font-weight: bold;
    }
  }
  .action {
    ul.list {
      background-color: #fff;
      display: flex;
      justify-content: space-between;
      padding: 16rem 10rem 10rem;
      li {
        display: flex;
        flex-direction: column;
        align-items: center;
        img {
          width: 35rem;
          height: 35rem;
        }
        span {
          font-size: 14rem;
          color: #2d2d2d;
          margin-top: 10rem;
        }
      }
    }
  }
  .letter-content {
    flex-grow: 1;
    background-color: #fff;
    margin-top: 10rem;
    .empty {
      width: 100%;
      height: 100%;
      display: flex;
      // justify-content: center;
      flex-direction: column;
      align-items: center;
      img {
        width: 100rem;
        height: 100rem;
        margin-top: 100rem;
      }
      span {
        font-size: 14rem;
        color: #999;
        margin-top: 10rem;
      }
    }
  }
}
</style>